#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/12/27 20:09
# @Author: 周健
# @Email: 907614893@qq.com
# @File：huodong_page.py
from pages.base_page import BasePage
from appium.webdriver.common.mobileby import MobileBy as By

class HuoDongPage(BasePage):
    attention_locator = (By.XPATH,'//android.widget.ImageView[@resource-id=\"com.gfeng.daydaycook:id/iv_focus_status\"]')
    # 点击关注
    def click_attention(self):
        self.driver.find_element(*self.attention_locator).click()
    # 获取点击关注后的activity
    def get_attention_activity(self):
        return self.driver.current_activity



